BoundedCapacity Property

Task Parallel System.Threading

Gets the bounded capacity of this BlockingCollection<(Of <(T>)>) instance.

Namespace:  System.Collections.Concurrent
Assembly:  System.Threading (in System.Threading.dll)

Syntax

Visual Basic (Declaration)
Public ReadOnly Property BoundedCapacity As Integer
C#
public int BoundedCapacity { get; }

Field Value

The bounded capacity of this collection, or int.MaxValue if no bound was supplied.

Exceptions

ExceptionCondition
System..::.ObjectDisposedExceptionThe BlockingCollection<(Of <(T>)>) has been disposed.

See Also